package winterTest.day09;

import java.util.Timer;
import java.util.TimerTask;

import org.junit.Test;

public class TestTimer {
	@Test 
	public void test01() throws InterruptedException {
		Timer timer = new Timer();
		timer.schedule(new TimerTask() {

			@Override
			public void run() {
				System.out.println("KOKOKOKOKOKOKOKO");				
			}
			
		},0, 1000);
		Thread.sleep(5000);

	}

}